package com.buyinglist.app.view;

import java.util.Date;

import com.buyinglist.app.domain.City;
import com.buyinglist.app.domain.Family;
import com.buyinglist.app.domain.User;

public class UserView {
	private Integer id;
	private String name;
	private Family family;
	private String login;
	private String password;
	private String email;
	private City city;
	private Date dateofreg;
	private String verify;
	
	public UserView(User u){
		this.id=u.getId();
		this.name=u.getName();
		this.family=u.getFamily();
		this.login=u.getLogin();
		this.password=u.getPassword();
		this.email=u.getEmail();
		this.city=u.getCity();
		this.dateofreg=u.getDateofreg();
		this.verify=u.getVerify();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Family getFamily() {
		return family;
	}

	public void setFamily(Family family) {
		this.family = family;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public Date getDateofreg() {
		return dateofreg;
	}

	public void setDateofreg(Date dateofreg) {
		this.dateofreg = dateofreg;
	}

	public String getVerify() {
		return verify;
	}

	public void setVerify(String verify) {
		this.verify = verify;
	}
	
}
